package pers.wq.controller;

import java.util.Map;

import pers.wq.BaseController;
import pers.wq.model.TeacherModel;

public class Teacher extends BaseController{
	public static String TABLE_XML = "table4teacher.xml";
	private TeacherModel user;
	public String login(){
		return this.login(getUser(), CAT_TEACHER);
	}
	public String teacherManager(){
		return this.easyJson(mkControllerMap("teacher","tid"));
	}
	public String rptManager(){
		return this.easyJson(mkControllerMap("rpt","rptid"));
	}
	public String srptManager(){
		return this.easyJson(mkControllerMap("srpt","srptid"));
	}
	protected Map<String, Object> mkControllerMap(String tableid,String idKey) {
		// TODO Auto-generated method stub
		return this.mkControllerMap(TABLE_XML, tableid, idKey);
	}
	public TeacherModel getUser() {
		return user;
	}
	public void setUser(TeacherModel user) {
		this.user = user;
	}
}
